package com.work.demo.juctest;

/**
 * @ClassName : MyTask
 * @Description :
 * @Author : LinYa
 * @Date: 2021/11/17  13:44
 */
public class MyTask implements Runnable {

	int j = 0;

	MyTask(int i) {
		this.j = i;
	}

	@Override
	public void run() {
		System.out.println(Thread.currentThread().getName() + "程序员做第" + j + "个项目");
		try {
			Thread.sleep(3000L);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
}
